import {useNavigate} from "react-router-dom";

function About() {

    const navigate = useNavigate();

    const handleClick = () => {
        navigate('/');
    }
    return (
        <div className="App">
        <header className="App-header">
            <p>
            about
            </p>
            <button onClick={handleClick}>home</button>
        </header>
        </div>
    )
}

export default About